https://websiteforstudents.com/install-the-latest-node-js-and-nmp-packages-on-ubuntu-16-04-18-04-lts/curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -

curl -sL https://deb.nodesource.com/setup_8.x | sudo bash -

sudo apt install nodejs

# To verifiy
node -v
npm -v